package com.cstz.ydshop.system.vo;

import com.cstz.ydshop.common.domain.Tree;

import java.util.ArrayList;
import java.util.List;

public class TreeVo<T> {

    private  String title;

    private String id;

    private String pid;

    private boolean spread = true;

    private boolean checked = false;

    private List<TreeVo<T>> children = new ArrayList<TreeVo<T>>();;

    public List<TreeVo<T>> getChildren() {
        return children;
    }

    public void setChildren(List<TreeVo<T>> children) {
        this.children = children;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

}
